<body onload="document.documentElement.offsetWidth; document.querySelector('details').style.color = 'green'">
  <details style="display: block; overflow: scroll;">
    <summary>Some summary</summary>
    The details
  </details>
</body>
